//
//  TextDemo.swift
//  SwiftUIDemo
//
//  Created by Tilt Wang on 2025/6/25.
//

import SwiftUI

struct TextDemo: View {
    var body: some View {
        Text("Hello, World!".lowercased())
//            .font(.body)
//            .font(.system(size: 24, weight: .semibold, design: .serif))
//            .fontWeight(.medium)
            .bold()
//            .underline()
            .underline(true, color: Color.red)
            .italic()
            .strikethrough()
//            .baselineOffset(40.0)
//            .kerning(3)
            .foregroundColor(.blue)
            .frame(width: 200, height: 200, alignment: .center)
//            .multilineTextAlignment(.leading)
    }
}

#Preview {
    TextDemo()
}
